package com.google.code.b0rx0r.program;

import java.io.Serializable;

public class AbsoluteSnapPoint extends SnapPoint implements Serializable {
	
	private static final long serialVersionUID = "AbsoluteSnapPoint 1.0".hashCode(); //$NON-NLS-1$
	
	private int offset;
	public AbsoluteSnapPoint(Sequencable sample, int offset) {
		this(sample, offset, null);
	}



	public AbsoluteSnapPoint(Sequencable sample, int offset, String name) {
		super(sample, name);
		this.offset = offset;
	}



	@Override
	public int getOffset() {
		return offset;
	}



	public void setOffset(int offset) {
		if (this.offset != offset) {
		  this.offset = offset;
		  sample.fireSnapPointMoved(this);
		}
	}
	
	
	
	

}
